package com.lxh.lxhcrm.model.pojos;

import javax.persistence.*;
import java.util.Objects;

/**
 * 付款约定
 */
@Entity
@Table(name="appoint_pay",schema = "lxh_crm", catalog = "")
public class AppointPay {
    private int appointId;
    private String appointName;

    @Id
    @Column(name = "appoint_id", nullable = false)
    public int getAppointId() {
        return appointId;
    }

    public void setAppointId(int appointId) {
        this.appointId = appointId;
    }

    @Basic
    @Column(name = "appoint_name", nullable = true, length = 40)
    public String getAppointName() {
        return appointName;
    }

    public void setAppointName(String appointName) {
        this.appointName = appointName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AppointPay that = (AppointPay) o;
        return appointId == that.appointId &&
                Objects.equals(appointName, that.appointName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(appointId, appointName);
    }
}
